<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <?php include 'inc/head.php'; ?>
</head>

<body>
  <?php include 'inc/header.php'; ?>

  <div class="container">

    <?php
    echo form_create(
      [
        'action' => M('admin', 'addon', 'edit_action', $this->id)
      ],
      [
        ['type' => 'text', 'label' => '名称', 'key' => 'a_name', 'required' => 'required'],
        ['type' => 'text', 'label' => '调用函数', 'key' => 'a_func', 'required' => 'required'],
        ['type' => 'textarea', 'label' => '描述', 'key' => 'a_desc'],
        ['type' => 'select', 'label' => '状态', 'key' => 'a_enable', 'value' => [['label' => '生效', 'value' => 1], ['label' => '失效', 'value' => 0]]],
        ['type' => 'submit', 'label' => '提交', 'key' => 'save']
      ],
      ['插件编辑'],
      $row
    );
    ?>

  </div>

  <?php include 'inc/footer.php'; ?>

</body>

</html>